package com.atguigu.common.constant;

/**
 * @create: 2024/9/16
 * @author: gyhe10
 * @description: seckill 服务常量类
 **/

public interface SeckillConstant {

    /**
     * 秒杀活动场次缓存前缀
     */
    String SESSION_CACHE_PREFIX = "seckill:sessions:";
    /**
     * 秒杀商品信息缓存前缀
     */
    String SKU_SEC_KILL_CACHE_PREFIX = "seckill:skus";
    /**
     * 秒杀商品库存信号量前缀，后面拼接商品随机码
     */
    String SKU_STOCK_SEMAPHORE = "seckill:stock:";
    /**
     * 实现秒杀商品定时上架接口幂等性的分布式锁
     */
    String UPLOAD_LOCK = "seckill:upload:lock";
}
